package cn.hp.controller;

import cn.hp.entity.LoginInfor;
import cn.hp.service.LoginInforService;
import cn.hp.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/loginInfor")
public class LoginInforController {

    @Autowired
    private LoginInforService loginInforService;

    @RequestMapping("/find")
    public Result find(LoginInfor loginInfor) {
        List<LoginInfor> loginInforList = loginInforService.findLoginInfor(loginInfor);
        return Result.RowsSuccess(loginInforList, loginInforList.size());
    }


}
